Skip to content

🏷️ types: move to ty#79

Merged
SigureMo merged 2 commits intomainfrom
chore/migrate-to-ty
Apr 25, 2026
Merged

🏷️ types: move to ty#79
SigureMo merged 2 commits intomainfrom
chore/migrate-to-ty

Conversation

@SigureMo
Copy link
Copy Markdown
Contributor

Summary

  • replace pyright with ty in the dev dependency set and lint command
  • remove the old pyright config and let Ruff enforce unused code again
  • update the VS Code recommendation and clean up the CLI entrypoint for the stricter checks

Refs: yutto-dev/yutto#619

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copilot AI review requested due to automatic review settings April 25, 2026 17:30
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the project’s type-checking workflow from Pyright to Astral’s ty, aligning dev dependencies, lint commands, and editor recommendations with the new toolchain.

Changes:

  • Replace pyright with ty in dev dependencies and update the just lint command to run ty check.
  • Remove the Pyright configuration and re-enable Ruff’s unused-code checks by no longer ignoring F401/F841.
  • Update VS Code extension recommendations from Pylance to the ty extension and simplify the CLI entrypoint to avoid an unused args binding.

Reviewed changes

Copilot reviewed 4 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
uv.lock Removes pyright (and nodeenv) and adds locked ty artifacts.
src/moelib/__main__.py Removes the unused args assignment after parse_args().
pyproject.toml Swaps Pyright for ty in dev deps, removes [tool.pyright], and re-enables Ruff unused-code rules.
justfile Updates lint to run uv run ty check ... instead of Pyright.
.vscode/extensions.json Recommends astral-sh.ty instead of Pylance.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread justfile
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@SigureMo SigureMo merged commit 93250f0 into main Apr 25, 2026
6 checks passed
@SigureMo SigureMo deleted the chore/migrate-to-ty branch April 25, 2026 17:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants